package com.clear.club.circle.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.clear.club.circle.api.common.PageResult;
import com.clear.club.circle.api.req.GetShareMessageReq;
import com.clear.club.circle.api.vo.ShareMessageVO;
import com.clear.club.circle.server.entity.po.ShareMessage;

public interface ShareMessageService extends IService<ShareMessage> {

    /**
     * 查询当前用户是否有未读消息
     */
    Boolean unRead();

    /**
     * 分页查询消息
     */
    PageResult<ShareMessageVO> getMessages(GetShareMessageReq req);

    void comment(String fromId, String toId, Long targetId);

    void reply(String fromId, String toId, Long targetId);

}
